/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-05-11
 * 20:27
 */
public class Test {
    public static void main(String[] args) {


        int[] arr={1,2,3,4,5,46,13};
        System.out.println( fun(arr));
    }
    public static boolean fun(int[] arr){
        int count=0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2!=0){
                count++;
                if(count==3){
                    return true;
                }
            }else{
                count=0;
            }
        }
        return false;
    }
}
